package org.example.demo1.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/first")
public  class toady01 {

    @GetMapping(value = "/first")
    public String first(){
        System.out.println("lege");
        return  "Hello world";
    }
    @GetMapping(value = "/second")
    public  String second(){
        return  "Hello qingcheng";
    }

}


















